<?php
/**
 * 配置model
 * Date: 2025/09/10
 */

namespace App\Models;

class ConfigModel extends BaseModel
{
    /**
     * 表名称
     *
     * @var string
     */
    protected $table = 'config';

    /**
     * 表主键
     *
     * @var string
     */
    protected $primaryKey = 'id';

    /**
     * 黑名单
     *
     * @var string
     */
    protected $guarded = [];

    /**
     * 配置类型（site：站点，support：客服）
     */
    const TYPE_SITE = 'site';
    const TYPE_SUPPORT = 'support';
    const TYPE_KEYS = [
        'site' => ['icon', 'name', 'logo', 'title', 'keywords', 'description'],
        'support' => ['qq_image', 'wx_image']
    ];
}
